widget: Fix :parent property type
authorTimm Bäder <mail@baedert.org>
Sat, 3 Dec 2016 10:09:58 +0000 (11:09 +0100)
committerTimm Bäder <mail@baedert.org>
Sat, 7 Jan 2017 16:19:30 +0000 (17:19 +0100)
Parent widgets can now also be widgets, not just containers.

gtk/gtkwidget.c

index 0be6b0df27e8d943b410b78e506f8b5989b75555..c644ac0f7b091b86d1d76482a4c4c7d1b9c2c7e7 100644 (file)
@@ -1085,8 +1085,8 @@ gtk_widget_class_init (GtkWidgetClass *klass)
   widget_props[PROP_PARENT] =
       g_param_spec_object ("parent",
                            P_("Parent widget"),
-                           P_("The parent widget of this widget. Must be a Container widget"),
-                           GTK_TYPE_CONTAINER,
+                           P_("The parent widget of this widget."),
+                           GTK_TYPE_WIDGET,
                            GTK_PARAM_READWRITE);
 
   widget_props[PROP_WIDTH_REQUEST] =
@@ -8507,9 +8507,9 @@ gtk_widget_set_parent (GtkWidget *widget,
  * gtk_widget_get_parent:
  * @widget: a #GtkWidget
  *
- * Returns the parent container of @widget.
+ * Returns the parent widget of @widget.
  *
- * Returns: (transfer none) (nullable): the parent container of @widget, or %NULL
+ * Returns: (transfer none) (nullable): the parent widget of @widget, or %NULL
  **/
 GtkWidget *
 gtk_widget_get_parent (GtkWidget *widget)